using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Net.Mail;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace de_kleintjesmarkt
{
   public partial class CtlMailWachtwoord : System.Web.UI.UserControl
   {
      protected void Page_Load(object sender, EventArgs e)
      {

      }

      protected void butSendPassword_Click(object sender, EventArgs e)
      {
         // Create message.
         MailMessage message = new MailMessage("minimarkt@hhs.nl", tbEmailadres.Text);
         // Set message properties.
         message.Subject = "minimarkt wachtwoord";
         message.Body = "hier komt het wachtwoord";

         SmtpClient client = new SmtpClient("frosty.hhs.nl");
         client.Send(message);

         // Show success.
         litMessage.Text = "<p>Wachtwoord verstuurd naar " + tbEmailadres.Text + ".</p>";

      }
   }
}